import Vue from 'vue';
import Router from 'vue-router';

import Hello from '@/components/Hello';
import Hello1 from '@/components/Hello1';
import Hello2 from '@/components/Hello2';
import notFound from '@/components/notFound';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Hello',
            component: Hello
        },
        {
            path: '/hello1',
            name: 'Hello1',
            component: Hello1
        },
        {
            path: '/hello2',
            name: 'Hello2',
            component: Hello2
        },
        {
            path: '*',
            name: 'notFound',
            component: notFound
        }
    ]
});
